package main

import "fmt"

func main() {
	//	变量的定义
	//var i int
	//i = 20
	//fmt.Println(i)
	//var i int = 100
	//fmt.Println(i)
	//var j = 100
	//fmt.Println(j)
	//i := 1000
	//fmt.Println(i)
	/*var a int = 100
	var b = 100
	c := 100
	println(a, b, c)*/
	//var a, b, c int
	//a = 100
	//b = 100
	//c = 100
	//println(a, b, c)
	//var (
	//	a    int
	//	name string
	//)
	//fmt.Println(a, name)
	//const PI = 3.1415926
	//fmt.Println(PI)
	//枚举
	//iota
	const (
		a = 13
		b
		c = iota
	)
	fmt.Println(a, b, c)
	//	iota只能在常量组中使用
	//	不同的const定义快互不干扰

}
